<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <div>
        <label for="">电话号码:</label>
        <input type="text" id="telInput">
        
        <button onclick="queryUser()">查询</button>
    </div>
    <!-- 数据显示 -->
    <div id="userTable"></div>

    <script>
        // 检测是否已经登录了
        function checkLogined() {
            const token = sessionStorage.getItem("token");
            if (!token) {
                // 请帮我用js检测该token是否过期。
                window.location.href = "./login.html";
            }
        }
        checkLogined();

        function xianshiYonghuNname() {
            document.getElementById("userTable").innerText = "欢迎你:";
        }

        xianshiYonghuNname();
    </script>
</body>
</html>